/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wf3.geo;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
import wf.dto.Valpagg;
import wf.dto.geo.CongeoDto;
/**
 *
 * @author romulogalindo
 */
public class Congeo {
    private Integer co_congeo;
    private String no_congeo;
    private List<Concap> ls_concap;
    private String nu_latlng;
    private int nu_zoomap;

    public Congeo() {
    }

    public Congeo(CongeoDto dto) {
        this.co_congeo = dto.getCo_congeo();
        this.no_congeo = dto.getNo_congeo();
        ls_concap = new ArrayList<>();
    }
    
    public Congeo(Valpagg dto) {
        this.co_congeo = dto.getCo_congeo();
        this.no_congeo = dto.getNo_congeo();
        ls_concap = new ArrayList<>();
    }

    public Integer getCo_congeo() {
        return co_congeo;
    }

    public void setCo_congeo(Integer co_congeo) {
        this.co_congeo = co_congeo;
    }

    public String getNo_congeo() {
        return no_congeo;
    }

    public void setNo_congeo(String no_congeo) {
        this.no_congeo = no_congeo;
    }

    public void add_concap(Concap concap){
        ls_concap.add(concap);
    }

    public List<Concap> getLs_concap() {
        return ls_concap;
    }

    public void setLs_concap(List<Concap> ls_concap) {
        this.ls_concap = ls_concap;
    }
    
    public String get_JSON(){
        return new Gson().toJson(this);
    }

    public String getNu_latlng() {
        return nu_latlng;
    }

    public void setNu_latlng(String nu_latlng) {
        this.nu_latlng = nu_latlng;
    }

    public int getNu_zoomap() {
        return nu_zoomap;
    }

    public void setNu_zoomap(int nu_zoomap) {
        this.nu_zoomap = nu_zoomap;
    }
        
    
}
